tools/mfndump: Avoid unintentional NULL dereference
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 13 Mar 2014 11:09:07 +0000 (11:09 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 13 Mar 2014 18:03:37 +0000 (18:03 +0000)
commite927d4be842cf44e8f0c92fb8c077a0e0f0383bb
tree389ec6951731fe70a8238a0024d1d9cdff896f25
parent29f0712bc008a9d6e611785424f797cfc185c1d3
tools/mfndump: Avoid unintentional NULL dereference

If we failed to open an xc interface, using xch to log an error will end in
tears.  Print to stderr instead, as we are bailing immediately later.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Coverity-id: 1191885
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Dario Faggioli <dario.faggioli@citrix.com>
tools/misc/xen-mfndump.c